import $ajax from '@/utils/ajax'

export function judgeIDSPermission () {
  return new Promise((resolve, reject) => {
    $ajax.get(
      '/expands/daqibodao/judgeIDSPermission'
    ).then(res => {
      resolve(res)
    }).catch(err => {
      reject(err)
    })
  })
}

export function queryIDSDatas () {
  return new Promise((resolve, reject) => {
    $ajax.get(
      '/expands/daqibodao/queryIDSDatas'
    ).then(res => {
      resolve(res)
    }).catch(err => {
      reject(err)
    })
  })
}

export function innerQueryDates (param) {
  return new Promise((resolve, reject) => {
    $ajax.get(
      '/expands/daqibodao/innerQueryDates',
      param
    ).then(res => {
      resolve(res)
    }).catch(err => {
      reject(err)
    })
  })
}

export function queryDates (param) {
  return new Promise((resolve, reject) => {
    $ajax.post(
      '/expands/daqibodao/queryDates',
      param
    ).then(res => {
    resolve(res)
  }).catch(err => {
    reject(err)
    })
  })
}
